﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hexa.Core.Domain;

namespace Hexa.QuestionEngine.Domain
{
    [Serializable]
    public class ContactSurveyAnswer : AuditableEntity<ContactSurveyAnswer>
    {
        public ContactSurveyAnswer()
        {
            _contactSurveyAnswerChoices = new List<ContactSurveyAnswerChoice>();
        }

        public virtual ContactSurvey ContactSurvey { get; set; }

        public virtual SurveyQuestion SurveyQuestion { get; set; }

        public virtual int ContactSurveyId { get; set; }

        public virtual string AnswerText { get; set; }

        public virtual decimal AnswerNumeric { get; set; }

        public virtual bool AnswerBoolean { get; set; }

        private IList<ContactSurveyAnswerChoice> _contactSurveyAnswerChoices;

        public virtual IList<ContactSurveyAnswerChoice> ContactSurveyAnswerChoices
        {
            get { return _contactSurveyAnswerChoices; }
        }
    }
}
